<!--
 * @Description: 
 * @Date: 2020-12-14 15:09:07
 * @LastEditors: lother
 * @LastEditTime: 2020-12-14 16:57:04
 * @FilePath: \AccounOpening-WEB\src\components\switchradio\index.vue
-->
<template>
    <el-checkbox v-model="checked" @change="changeTime">{{title}}</el-checkbox>
</template>
<script>
export default {
    computed:{
        langTail(){
            return this.$store.state.settings.langTail
        }
    },
    props:{
        value:{
            default:''
        },
        title:{
            type:String,
            default:''
        },
        
    },
    data() {
        return {
            checked:''
        }
    },
    created(){
    },
    methods:{
        changeTime(val){
            this.$emit('input',val)
        }
    },
    watch:{
        value(val,old){
            this.checked = val
        },
    }
}
</script>
<style lang="scss" scoped>

.el-checkbox{
      padding:6px  0;
      white-space: inherit;
      width: 100%;
      line-height: 24px;
      >>>.el-checkbox__input{
          padding:4px  0;
          position: absolute;
      }
      >>>.el-checkbox__label{
          padding-left: 21px;
      }
}
</style>